package com.fiume.consumer.client;

import com.fiume.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * <p>
 * Description:
 * </p>
 *
 * @author fiume
 * @version v1.0.0
 * @create 2021-01-19 19:40
 * @see com.fiume.consumer.client
 */
@Component
public class UserClientFallback implements UserClient {
    @Override
    public User findUserByid(Long userid) {
        User user = new User();
        user.setId(userid);
        user.setName("用户查询异常!!!");
        return user;
    }
}
